from data_feed import data_dzh, stock_zh_index_daily

# 示例调用
M5M60_file_path = '法宝回测/dzh自定义/M5M60.txt'  # 替换为你的文件路径
data_M5M60 = data_dzh(M5M60_file_path)
data_M5M60 = data_M5M60.read_and_convert_txt_to_dataframe()
print(data_M5M60.tail())

bwwmacd_file_path = '法宝回测/dzh自定义/macd.txt'  # 替换为你的文件路径
data_bwwmacd = data_dzh(bwwmacd_file_path)
data_bwwmacd = data_bwwmacd.read_and_convert_txt_to_dataframe()
print(data_bwwmacd.tail())

data_stock = stock_zh_index_daily(symbol="sh000001")
data_stock = data_stock.get_data()
print(data_stock.tail())